package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@TableName("center_user_third_party")
@NoArgsConstructor
public class UserThirdPartyBean extends Model<UserThirdPartyBean> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id")
    @ApiModelProperty(name = "id", notes = "主键ID")
    @Size(max = 32)
    private String id;

    @ApiModelProperty(name = "userId", notes = "用户ID")
    @Size(max = 64)
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(name = "accountName", notes = "第三方账号名")
    @TableField(value = "account_name")
    private String accountName;

    @ApiModelProperty(name = "fullName", value = "第三方账号姓名")
    @TableField(value = "full_name")
    private String fullName;

    @ApiModelProperty(name = "accountId", value = "第三方账号ID")
    @TableField(value = "account_id")
    private String accountId;

    @ApiModelProperty(name = "createTime", value = "关联时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    
    /**
     * 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
 
}
